home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 1998 August / PC Plus SuperCD 50b Issue 142 (CD142b) (August 1998).iso / handson / Java / sc20form.jar / com / supercede / beans / stdawt / RadioButton.class (.txt) next >
Encoding:
Java Class File  |  1998-01-26  |  969 b   |  24 lines

  1. package com.supercede.beans.stdawt;
  2.  
  3. import java.awt.Checkbox;
  4. import java.awt.CheckboxGroup;
  5. import java.io.Serializable;
  6.  
  7. public class RadioButton extends Checkbox implements Serializable {
  8.    private RadioButtonGroup radioGroup;
  9.  
  10.    public RadioButtonGroup getRadioButtonGroup() {
  11.       return this.radioGroup;
  12.    }
  13.  
  14.    public void setRadioButtonGroup(RadioButtonGroup var1) {
  15.       this.radioGroup = var1;
  16.       ((Checkbox)this).setCheckboxGroup(this.radioGroup.getCheckboxGroup());
  17.    }
  18.  
  19.    public RadioButton() {
  20.       ((Checkbox)this).setCheckboxGroup(new CheckboxGroup());
  21.       this.radioGroup = new RadioButtonGroup("", this, (CheckboxGroup)null);
  22.    }
  23. }
  24.